﻿using System.Xml;

namespace MC.Warehouse.Core
{
    public class MenuManager
    {
        private static RelayCommand _command;
        public static RelayCommand Command 
        {
            get { return _command ?? (_command = new RelayCommand(MenuItemClick)); }
        }

        private static void MenuItemClick(object param)
        {
            TabbarManager.OpenTab(param as XmlLinkedNode);
        }

        internal static void Clean()
        {
            _command = null;
        }
    }
}
